Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

524
Visualizações
When Importing Self Made Vue 3 Library Into Vue 3 Project: "Uncaught TypeError: Cannot read properties of null (reading 'isCE')"

I created a custom component library using Vue 3, and after installing it locally thru yarn and registering the components, I kept getting the following error in the browser devtools when using the components in the template:

Uncaught TypeError: Cannot read properties of null (reading 'isCE')

Upon researching the issue, it became apparent that the Vue community's proposed solution isn't working. I'm running the same Vue 3 version on both projects. I followed the steps to create and modify vue.config.js to alias Vue and disable symlinks, but to no avail.

module.exports = {
  chainWebpack(config) {
    config.resolve.symlinks(false);
    config.resolve.alias.set("vue", path.resolve("./node_modules/vue"));
  },
};

I followed the rabbit hole which only led to the same conclusions: either modifying vue.config.js worked, or no solution was found. The issue (mainly) seems to be with components with slots.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Try vite instead of vue-cli to create your custom lib. and keep your vue stay at devDependencies in Package.json

about 4 years ago · Juan Pablo Isaza Relatório

0

for me this solution solved it inside vite.config

resolve: {
        alias: {
          vue: path.resolve('./node_modules/vue'),
        },
        dedupe: ['vue'],
      },
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda